#!/bin/bash
#
#	Calculate all structures
#
	echo "ADC"
	structmap.awk h/adc_1125.h LPC_ADC_T out/adc_1125.csv out/adc_stats.txt

	echo "FMC"
	structmap.awk h/fmc_1125.h LPC_FMC_T out/fmc_1125.csv out/fmc_stats.txt

	echo "GPIO"
	structmap.awk h/gpio_1125.h LPC_GPIO_T out/gpio_1125.csv out/gpio_stats.txt

	echo "I2C"
	structmap.awk h/i2c_common_1125.h LPC_I2C_T out/i2c_1125.csv out/i2c_stats.txt

	echo "PMU"
	structmap.awk h/pmu_1125.h LPC_PMU_T out/pmu_1125.csv out/pmu_stats.txt

	echo "SSP"
	structmap.awk h/ssp_1125.h LPC_SSP_T out/ssp_1125.csv out/ssp_stats.txt

	echo "SYSCON"
	structmap.awk h/syscon_1125.h LPC_SYSCON_T out/syscon_1125.csv out/syscon_stats.txt

	echo "TIMER"
	structmap.awk h/timer_1125.h LPC_TIMER_T out/timer_1125.csv out/timer_stats.txt

	echo "UART"
	structmap.awk h/uart_1125.h LPC_UART_T out/uart_1125.csv out/uart_stats.txt

	echo "WWDT"
	structmap.awk h/wwdt_1125.h LPC_WWDT_T out/wwdt_1125.csv out/wwdt_stats.txt

#
#	end: calc.sh
#
